package com.ktjy.entity;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Pet {
    private static final Logger LOGGER = LoggerFactory.getLogger(Pet.class);
    private String name; //宠物名
    private int age; //宠物年龄


    public void introduce() {
        System.out.println("我是" + this.name + "今年" + this.age + "岁");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


}
